import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';  
import injectTapEventPlugin from 'react-tap-event-plugin';
import {Link} from 'react-router';

injectTapEventPlugin();

var  Launch = React.createClass({  
	render:function() {  
		var content=(<Link to="/test">goto test</Link>);
		if(this.props.children){ 
			content=React.cloneElement(this.props.children, {
		        key: this.props.location.pathname
		    });
		}

		return (
			<div className="root-container">
	        	 <ReactCSSTransitionGroup
		          component='div'
		          className="views-stage"
		          transitionName="slider"
		          transitionEnterTimeout={210}
		          transitionLeaveTimeout={210}
		        > 
		          {content}
		           
		        </ReactCSSTransitionGroup> 
        	</div>);
	}
});
module.exports=Launch;